<template>
   
  <h1>{{user.newxiaoshuoinfo.title}}</h1>
  <h2>{{ user.newxiaoshuoinfo.bookName }}</h2>
  <p>{{user.newxiaoshuoinfo.content}}</p>
</template>

<script setup>
import { useRoute  } from 'vue-router';
import { shuxiangloucontent } from '@/api/article';
import { userstore } from '@/stores/userstore';
const user = userstore();
const route = useRoute();
const id=route.query.id
shuxiangloucontent(id).then(res=>{

  user.newxiaoshuoinfo=res[id]
})
console.log(user.newxiaoshuoinfo);

</script>

<style scoped>

</style>